package com.zyz.system.model.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zyz.common.core.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName(value = "tb_exam_question")
public class ExamQuestion extends BaseEntity {
    /*
    create table tb_exam_question (
    exam_question_id bigint unsigned not null comment '竞赛题目关系id(主键)',
    question_id bigint unsigned not null comment '题目id',
    exam_id bigint unsigned not null comment '竞赛id',
    question_order int not null comment '题目顺序',
    create_by bigint unsigned default 1 not null comment '创建人',
    create_time datetime not null default now() comment '创建时间',
    update_by bigint unsigned comment '更新人',
    update_time datetime comment '更新时间',
    primary key (exam_question_id)
);
     */

    @TableId(type = IdType.ASSIGN_ID)
    private Long examQuestionId;  // 竞赛题目关系id(主键)

    private Long questionId;  // 题目id

    private Long examId;  // 竞赛id

    private Integer questionOrder;  // 竞赛题目顺序

}
